package com.cloud.pole.msg.model.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Data;

/**
 * @author 
 */
@Table(name="msg_user_notice")
@Data
public class MsgUserNotice implements Serializable {
    /**
     * id
     */
    @Id
    @Column(name="user_notice_id")
    private Integer userNoticeId;

    /**
     * 通知id
     */
    @NotEmpty
    @Column(name="notice_id")
    private Integer noticeId;

    /**
     * 用户id
     */
    @NotEmpty
    @Column(name="user_id")
    private Integer userId;

    /**
     * 是否已经读取(0：否 1：是)
     */
    @Column(name="is_read")
    private Short isRead;

    /**
     * 读取时间
     */
    @Column(name="read_time")
    private Date readTime;

    /**
     * 是否删除(0：否 1：是)
     */
    @Column(name="delete_flag")
    private Short deleteFlag;

    /**
     * 删除时间
     */
    @Column(name="delete_time")
    private Date deleteTime;

    /**
     * 用户类型(1：用户)
     */
    @Column(name="user_type")
    private Short userType;

    private static final long serialVersionUID = 1L;
}